﻿using System.Web.Http;
using SCS.Common.Models;
using SCS.Business;
namespace SchoolCommunicationSystem.Controllers
{
 //   [Authorize]
    public class WinFormController : ApiController
    {
        ClassServices _class = new ClassServices();
        LearnerServices _learner = new LearnerServices();
        // GET api/<controller>
        public Learner Get()
        {
            return _learner.GetLearner(1);
        }

        // GET api/<controller>/5
        public string Get(int id)
        {
            return "value";
        }

        // POST api/<controller>
        public void Post([FromBody]string value)
        {
        }

        // PUT api/<controller>/5
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE api/<controller>/5
        public void Delete(int id)
        {
        }
    }
}